//package com.chenjun.core.schedule;
//
//import com.chenjun.core.service.logic.InsureOrderService;
//import org.apache.log4j.Logger;
//import org.quartz.JobExecutionContext;
//import org.quartz.JobExecutionException;
//import org.quartz.SchedulerContext;
//import org.quartz.SchedulerException;
//import org.springframework.scheduling.quartz.QuartzJobBean;
///**
// * 
// * @Description: 生成失效投保单
// * @author yanjinyin
// * @date 2017年7月15日 下午11:26:35
// */
//public class GenerateIvalidInsureOrderQuartzJobBean extends QuartzJobBean {
//
//	private static final Logger logger = Logger.getLogger(GenerateIvalidInsureOrderQuartzJobBean.class.getName());
//
//	private InsureOrderService insureOrderService;
//
//	public GenerateIvalidInsureOrderQuartzJobBean() {
//	}
//
//	/**
//	 * (非 Javadoc)
//	 * 
//	 * 
//	 * @param context
//	 * @throws JobExecutionException
//	 * @see QuartzJobBean#executeInternal(JobExecutionContext)
//	 */
//	@Override
//	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
//		logger.error("++++++++++++++++++++GenerateIvalidInsureOrderQuartzJobBean executeInternal++++++++++++++++++++");
//		// 获取JobExecutionContext中的service对象
//		SchedulerContext skedCtx;
//		try {
//			skedCtx = context.getScheduler().getContext();
//			// 获取SchedulerContext中的service
//			insureOrderService = (InsureOrderService) skedCtx.get("insureOrderService");
//			// 生成失效投保单
//			insureOrderService.generateIvalidInsureOrder();
//
//		} catch (SchedulerException e) {
//			logger.error(e.getStackTrace());
//		}
//	}
//}
